#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"
#include <stdlib.h>

// unit test for the embargo card.

int main() {
	int r;

	int k[10] = { adventurer, council_room, feast, gardens, mine, remodel,
			smithy, village, baron, great_hall };

	struct gameState G;

	r = initializeGame(4, k, 1, &G);

	G.coins = 0;
	G.embargoTokens[1] = 0;

	if(cardEffect(embargo, 1, 0, 0, &G, 0, NULL ) != 0){
		printf("Computing Embargo failed\n");
	}

	if (G.coins != 2 || G.embargoTokens[1] != 1) {
		printf("error\n");

		return 1;
	}

	return 0;
}
